package cn.springtest;

import cn.springdemo.HelloSpring;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import static org.junit.Assert.*;

public class DialogueTest {

    @Test
    public void testDialogue() {
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
        Dialogue dialogue=(Dialogue)context.getBean("dialogue");
        dialogue.LUFFYprint();
        dialogue.krohnYprint();
    }
}